package com.zw.weiyi.util;

import java.util.Comparator;

import com.zw.weiyi.enety.Person;
/**
 * 特殊字符
 * @author Striver_zw
 *   Date  2014-12-4
 */
public class PYComparator implements Comparator<Person> {
	public int compare(Person person1, Person person2) {
		if (person1.getSortLetters().equals("@") || person2.getSortLetters().equals("#")) {
			return -1;
		} else if (person1.getSortLetters().equals("#") || person2.getSortLetters().equals("@")) {
			return 1;
		} else {
			return person1.getSortLetters().compareTo(person2.getSortLetters());
		}
	}
}
